import request from "@/utils/request";

export function getPage(query) {
  return request({
    url: "/business/bookstore-info/listByPage",
    method: "post",
    data: query,
  });
}

export function addObj(obj) {
  return request({
    url: "/business/bookstore-info/add",
    method: "post",
    data: obj,
  });
}

export function getObj(id) {
  return request({
    url: "/business/bookstore-info/queryById?id=" + id,
    method: "get",
  });
}

export function delObj(id) {
  return request({
    url: "/business/bookstore-info/delete/" + id,
    method: "delete",
  });
}

export function putObj(obj) {
  return request({
    url: "/business/bookstore-info/edit",
    method: "put",
    data: obj,
  });
}

export function updateStatus(obj) {
  return request({
    url: "/business/bookstore-info/editState",
    method: "put",
    data: obj,
  });
}
